import { createBrowserRouter } from "react-router-dom";

import Login from "@/views/login";
import Layout from "@/layout";
import { adminRoutes } from "./modules/admin";

export const router = createBrowserRouter([
  {
    path: "/login",
    element: <Login />,
  },
  {
    path: "/admin",
    element: <Layout />,
    children: adminRoutes,
  },
  {
    path: "/",
    element: <Login />,
  },
]);
